﻿using System.Collections.Generic;
using Gp.Scripts.Core;
using Gp.Scripts.Data.Skills;

namespace Gp.Scripts.Data.Equip.Impl {
    [WeaponPhrase("势不可挡", " 将攻击对象的护甲板视为仅有一块（覆盖穿透效果）。")]
    public class OverwhelmingPhrase : WeaponPhraseDecorator{
        public override bool AfterAttack(BaseUnit target, AttackActionResult atkResult) {
            if (atkResult.DamageMake <= 0) return false;
            TextEffect(target, "势不可挡");
            return true;
        }

        public override IEnumerable<SkillTags> Tags() {
            yield return SkillTags.Overwhelming;
        }
    }
}